package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author mengyb
 * @since 2019/04/12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWBG_T")
public class GwbgT extends PO<GwbgT> {
    private static final long serialVersionUID = 1L;

    private String GWBGENT;

    @TableId(value = "GWBG001",type = IdType.INPUT)
    private String GWBG001;

    private String GWBG002;

    private String GWBG003;

    private String GWBG004;

    private String GWBG005;

    private String GWBG006;

    private String GWBG007;

    private String GWBGACTI;

    @TableField(fill = FieldFill.INSERT)
    private String GWBGUSER;

    @TableField(fill = FieldFill.INSERT)
    private String GWBGGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String GWBGMODU;

    @TableField(fill = FieldFill.INSERT)
    private String GWBGTIME;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDate GWBGDATE;

    @TableField(fill = FieldFill.INSERT)
    private String GWBGORIG;

    @TableField(fill = FieldFill.INSERT)
    private String GWBGORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWBG001;
    }

}
